﻿namespace TanzimSaqib.NoBrainer.Sample.DataAccess
{
    //using System.Data.SqlClient;
    //using System.Web.Management;
    //using System.Configuration;

    //public class SqlFeatureInstaller
    //{
    //    private readonly static string _ConnectionString = ConfigurationManager.ConnectionStrings["NoBrainer.Sample"].ConnectionString;
    //    private readonly static SqlConnectionStringBuilder _ConnectionStringBuilder = new SqlConnectionStringBuilder(_ConnectionString);

    //    private static void InstallScript(SqlFeatures sqlFeatures)
    //    {
    //        SqlServices.Install(_ConnectionStringBuilder.InitialCatalog, sqlFeatures, _ConnectionString);
    //    }

    //    //private static string GetUninstallScript(SqlFeatures sqlFeatures)
    //    //{
    //    //    return SqlServices.GenerateApplicationServicesScripts(false, sqlFeatures,
    //    //                                                          _ConnectionStringBuilder.InitialCatalog);
    //    //}

    //    public static void Install()
    //    {
    //        InstallScript(SqlFeatures.Membership | SqlFeatures.Profile);
    //    }
    //}
}
